B. Minimize the error (Greedy + MaxHeap)
Grid L Problem from Codeforces
Bingo Candies Problem from Codeforces